<?php
include_once("../module/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'finance'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
?>






<?php
//接收需要修改的数据的id
$new_detail_nid = addslashes($_REQUEST['nid']);

//传递过来的页面信息。返回的时候，会根据这些信息返回原来的页面
$nowpageid      = addslashes($_REQUEST['nowpageid']);
$sortby         = addslashes($_REQUEST['sortby']);
$term_nid       = addslashes($_REQUEST['term_nid']);
?>


<?
$_REQUEST['ai_ip']          =  addslashes($_SERVER['REMOTE_ADDR']);
$_REQUEST['ai_authur']      = $_SESSION['username'];




//设置需要搜索的表格的前缀后缀
$table_suffix = $plate['table_suffix'];
$table        = $table_Prefix . $table_suffix;

$sql=update_date($table,$_REQUEST,"nid",$new_detail_nid);
$query = mysql_query($sql) or die ("error:".mysql_error());



?>





<?

$nowpageid = $_GET["nowpageid"];
if($nowpageid==1){
    $url = "detail-list.php?nav-itemed=finance";
}
else{
    $url = "detail-list.php?nowpageid=".$nowpageid."&sortby=nid&nid=&now_extender=finance&nav-itemed=finance";
}
?>



<script type="text/javascript">
    window.parent.location.reload();//刷新父页面

</script>

